import pandas as pd
import numpy as np
class My_knn:
    def mymax(self,x):
        # 最值归一化
        y = [(i - min(x)) / (max(x) - min(x)) for i in x]
        return y

    def mean_std(x):
        # 标准差归一化
        return [(i - np.mean(x)) / np.std(x) for i in x]

    def mean_var1(x):
        # 方差归一化
        return [(i - np.mean(x)) / np.var(x) for i in x]

if __name__ == '__main__':
    from sklearn.model_selection import train_test_split, GridSearchCV
    from sklearn.neighbors import KNeighborsClassifier